]> dgit.raspbian.org Git - ostree.git/commitdiff
static-delta: remove unused total_usize variable
authorEric Curtin <eric.curtin@docker.com>
Mon, 8 Jun 2026 20:53:06 +0000 (21:53 +0100)
committerJoseph Marrero Corchado <jmarrero@redhat.com>
Wed, 24 Jun 2026 14:15:13 +0000 (10:15 -0400)
In _ostree_delta_get_endianness, total_usize was accumulated across
delta parts but never read or used in any heuristic or output. Remove
the dead variable and its accumulation.

src/libostree/ostree-repo-static-delta-core.c

index 1a1b3309522693703a576da2e0628204429a4359..f666e8a577c7bdb2ebc3915048cb02be70fa39e0 100644 (file)
@@ -817,7 +817,6 @@ _ostree_delta_get_endianness (GVariant *superblock, gboolean *out_was_heuristic)
     *out_was_heuristic = TRUE;
 
   guint64 total_size = 0;
-  guint64 total_usize = 0;
   guint total_objects = 0;
   {
     g_autoptr (GVariant) meta_entries = NULL;
@@ -837,8 +836,6 @@ _ostree_delta_get_endianness (GVariant *superblock, gboolean *out_was_heuristic)
 
         total_objects += n_objects;
         total_size += size;
-        total_usize += usize;
-
         if (size > usize)
           {
             double ratio = ((double)size) / ((double)usize);